﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _067.自定义配置系统读取
{
	class WebConfig
	{
		public ConnectStr Conn1 { get; set; }
		public ConnectStr Conn2Test { get; set; }

		public Config Config { get; set; }
	}

	class ConnectStr
	{
		public string ConnectionStrings { get; set; }
		public string ProviderName { get; set; }

	}

	public class Config
	{
		public string Name { get; set; }
		public string Age { get; set; }
		public Server Proxy { get; set; }

	}

	public class Server
	{
		public string Address { get; set; }
		public string Port { get; set; }

		public override string ToString()
		{
			return $"Address：{Address},Port:{Port}";
		}
	}
}
